'Declaration Public MustInherit Class SQLiteScalarFunction(Of TResult) Inherits SQLiteScalarFunction Implements System.IDisposable
public abstract class SQLiteScalarFunction<TResult> : SQLiteScalarFunction, System.IDisposable
'Declaration Public MustInherit Class SQLiteScalarFunction(Of TResult) Inherits SQLiteScalarFunction Implements System.IDisposable
public abstract class SQLiteScalarFunction<TResult> : SQLiteScalarFunction, System.IDisposable
Use this generic class to derive classes for user-defined scalar functions without parameters from it. This generic class was introduced to ease the user-defined function creating. It allows to specify parameter count, type, and function result type. As an alternative, you may use SQLiteScalarFunction to create user-defined aggregate functions with any number of parameters.
The scalar function is a simple function, that returns a scalar value and is executed once when called.
To register the user-defined scalar funtion, create the class, derived from SQLiteScalarFunction and pass its name and number of arguments to the base class constructor.
You should also override the Execute(SQLiteConnection) method, which should implement the function actions.
System.Object
Devart.Data.SQLite.SQLiteFunction
Devart.Data.SQLite.SQLiteScalarFunction
Devart.Data.SQLite.SQLiteScalarFunction<TResult>
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2